package ru.payment.wm.impl.response;

import ru.payment.wm.Trust;

import java.util.Date;

/**
 *
 * User: sergey
 * Date: 17.04.2009
 * Time: 15:30:09
 *
 */
public class TrustImpl implements Trust {

  private String trustId;  
  private boolean allowInvoice;
  private boolean allowTrans;
  private boolean allowPurse;
  private boolean allowTransHist;

  private String master;
  private String purse;
  
  private float limit;
  private float dayLimit;
  private float weekLimit;
  private float monthLimit;

  private float daySumma;
  private float weekSumma;
  private float monthSumma;

  private Date lastTransferDate;

  public TrustImpl() {
  }

  public String getTrustId() {
    return trustId;
  }

  public void setTrustId(String trustId) {
    this.trustId = trustId;
  }

  public boolean isAllowInvoice() {
    return allowInvoice;
  }

  public void setAllowInvoice(boolean allowInvoice) {
    this.allowInvoice = allowInvoice;
  }

  public boolean isAllowTrans() {
    return allowTrans;
  }

  public void setAllowTrans(boolean allowTrans) {
    this.allowTrans = allowTrans;
  }

  public boolean isAllowPurse() {
    return allowPurse;
  }

  public void setAllowPurse(boolean allowPurse) {
    this.allowPurse = allowPurse;
  }

  public boolean isAllowTransHist() {
    return allowTransHist;
  }

  public void setAllowTransHist(boolean allowTransHist) {
    this.allowTransHist = allowTransHist;
  }

  public String getMaster() {
    return master;
  }

  public void setMaster(String master) {
    this.master = master;
  }

  public String getPurse() {
    return purse;
  }

  public void setPurse(String purse) {
    this.purse = purse;
  }

  public float getLimit() {
    return limit;
  }

  public void setLimit(float limit) {
    this.limit = limit;
  }

  public float getDayLimit() {
    return dayLimit;
  }

  public void setDayLimit(float dayLimit) {
    this.dayLimit = dayLimit;
  }

  public float getWeekLimit() {
    return weekLimit;
  }

  public void setWeekLimit(float weekLimit) {
    this.weekLimit = weekLimit;
  }

  public float getMonthLimit() {
    return monthLimit;
  }

  public void setMonthLimit(float monthLimit) {
    this.monthLimit = monthLimit;
  }

  public float getDaySumma() {
    return daySumma;
  }

  public void setDaySumma(float daySumma) {
    this.daySumma = daySumma;
  }

  public float getWeekSumma() {
    return weekSumma;
  }

  public void setWeekSumma(float weekSumma) {
    this.weekSumma = weekSumma;
  }

  public float getMonthSumma() {
    return monthSumma;
  }

  public void setMonthSumma(float monthSumma) {
    this.monthSumma = monthSumma;
  }

  public Date getLastTransferDate() {
    return lastTransferDate;
  }

  public void setLastTransferDate(Date lastTransferDate) {
    this.lastTransferDate = lastTransferDate;
  }

  @Override
  public String toString() {
    return
      "trustId: "+trustId+"\n"+
      "allowInvoice: "+allowInvoice+"\n"+
      "allowTrans: "+allowTrans+"\n"+
      "allowPurse: "+allowPurse+"\n"+
      "allowTransHist: "+allowTransHist+"\n"+

      "master: "+master+"\n"+
      "purse: "+purse+"\n"+

      "limit: "+limit+"\n"+
      "dayLimit: "+dayLimit+"\n"+
      "weekLimit: "+weekLimit+"\n"+
      "monthLimit: "+monthLimit+"\n"+

      "daySumma: "+daySumma+"\n"+
      "weekSumma: "+weekSumma+"\n"+
      "monthSumma: "+monthSumma+"\n"+

      "lastTransferDate: "+lastTransferDate;

  }

}

